import {ref} from 'vue'
import{defineStore} from 'pinia'
import { Llm_id } from '../utils/utils'

enum Icons {
    doubao = 'mdi-alpha-d-box',
    spark = 'mdi-alpha-s-box',
    qwen = 'mdi-alpha-q-box',
    yiyan = 'mdi-alpha-y-box',
    glm = 'mdi-alpha-g-box',
    gemini = 'mdi-google',
  }
export const useIconsStore = defineStore('icons',()=>{
    const icons = ref('')
    function changeIcons(llm:Llm_id){
        if(llm == Llm_id.doubao){
            icons.value = Icons.doubao
        }else if (llm == Llm_id.yiyan){
            icons.value = Icons.yiyan
        }
        else if(llm == Llm_id.spark){
            icons.value = Icons.spark
        }else if(llm == Llm_id.glm){
            icons.value = Icons.glm
        }else if(llm == Llm_id.qwen){
            icons.value = Icons.qwen
        }else if(llm == Llm_id.gemini){
            icons.value = Icons.gemini
        }
        console.log(icons.value);
        
    }
    return {
        icons,
        changeIcons
    }
})